package com.blqy.fr.model.log;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.blqy.fr.model.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "材料成本记录")
@TableName("material")
public class Material extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "材料名称")
    @TableField("material_name")
    private String materialName;

    @Schema(description = "用量")
    @TableField("material_number")
    private String materialNumber;

    @Schema(description = "单价")
    @TableField("material_price")
    private BigDecimal materialPrice;

    @Schema(description = "单位")
    @TableField("unit")
    private String unit;

    @Schema(description = "金额")
    @TableField("material_amonut")
    private BigDecimal materialAmonut;

    @Schema(description = "备注")
    @TableField("remarks")
    private String remarks;
}